﻿using System;

using RexToy.UI.Controls;

namespace CSXCSite
{
    public class MainPage : Page
    {
        public MainPage()
            : base(TransitionMode.Slide)
        {
            ListView lv = new ListView();

            //Block h = new Block();
            HeaderBar h = new HeaderBar("CXSC - Cross Compiler C# code to Javascript code");
            //h.AppendText("CXSC - Cross Compiler C# code to Javascript code", Tag.H2);
            this.AppendControl(h);

            ListItem item1 = new ListItem("<h4>What is CSXC?</h4><h5>CSXC (C# Cross Compiler) is a project inspired by <a href='http://code.google.com/intl/en/webtoolkit/'>GWT</a> and <a href='http://www.scriptsharp.com'>Script#</a>, it can compile your C# code in VStudio to Javascript code.<h5>", null);            
            ListItem item2 = new ListItem("<h4>Why CSXC?</h4><h5>It brings the full power of VStudio IDE to your JavaScript/Ajax development - intellisense/refactor/compile time check...</h5>", null);
            ListItem item3 = new ListItem("<h4>How does CSXC work?</h4><h5>CSXC is based on <a href='http://msdn.microsoft.com/en-us/roslyn'>Microsoft Project Roslyn</a>, it will parse your C# source code and translate them to standard javascript.</h5>", null);

            lv.AppendItem(item1);
            lv.AppendItem(item2);
            lv.AppendItem(item3);

            this.AppendControl(lv);
        }
    }
}
